<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	xmlns:a4j="http://richfaces.org/a4j"
	template="/pages/templates/templateMain.xhtml">

	<ui:param name="browser_tab_title" value="Edit Bundles" />
	<ui:param name="page_title" value="Edit Bundles" />

	<ui:define name="content">

		<p:panel>
			<h:form>
				<f:facet name="header">
					<h:outputText value="Bundles Form" />
				</f:facet>

				<p:dataTable value="#{serviceBundles}" var="_bundle"
					emptyMessage="No item to display" paginator="true"
					paginatorPosition="top" rows="20">
					<p:column>
						<f:facet name="header" />
						<h:selectBooleanCheckbox value="#{_bundle.selected}" />
					</p:column>

					<p:column>
						<f:facet name="header">
							<h:outputText value="Symbolic name" />
						</f:facet>
						<h:outputText value="#{_bundle.bundleData.symbolicName}" />
					</p:column>

					<p:column>
						<f:facet name="header">
							<h:outputText value="Presentation name" />
						</f:facet>
						<h:outputText value="#{_bundle.bundleData.presentationName}" />
					</p:column>

					<p:column filterBy="#{_bundle.bundleData.version}"
						filterStyle="width: 50px" styleClass="centered">
						<f:facet name="header">
							<h:outputText value="Version" />
						</f:facet>
						<h:outputText value="#{_bundle.bundleData.version}" />
					</p:column>
				</p:dataTable>

				<br />
				<br />

				<p:commandButton id="buttonCancel" value="Cancel" action="cancel"
					immediate="true" ajax="false" />
				<p:commandButton id="buttonResources" value="Next"
					action="#{editServiceBean.toEditResources}" ajax="false" />
				<p:commandButton id="buttonFinish" value="Summary"
					action="#{editServiceBean.toSummary}" ajax="false" />
			</h:form>
		</p:panel>

	</ui:define>
</ui:composition>